package com.zking.service.jch;

import com.zking.entity.Seller;
import com.zking.mapper.SellerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusinessAuditService {
    @Autowired
    private SellerMapper sellerMapper;

    public List<Seller> queryBusinessAuditAll() {
        return sellerMapper.queryBusinessAuditAll();
    }

    public Seller queryBusinessAuditByName(String name) {
        return  sellerMapper.queryBusinessAuditByName(name);
    }

    public boolean updateStatusTrue(String sellerId) {
         return  sellerMapper.updateStatusTrue(sellerId) > 0;
    }

    public boolean updateStatusFalse(String sellerId) {
        return  sellerMapper.updateStatusFalse(sellerId) > 0;
    }
}
